import { defineStore } from 'pinia'

export interface Room {
  id: number
  name: string
  players: number
}

export const useRoomStore = defineStore('room', {
  state: () => ({
    rooms: [] as Room[],
  }),
  actions: {
    setRooms(newRooms: Room[]) {
      this.rooms = newRooms
    },
  },
}) 